<?php /* Smarty version 2.6.20, created on 2013-05-25 01:50:42
         compiled from _core/_include/module/_mvc/view/dialogmethod.tpl */ ?>
function DialogMethod(container, item, options) {
  this._container = container;
  this._item = item;
  this._options = options;
  
  this._createElements();
};

DialogMethod.prototype._createElements = function() {
  var gui, radio, table, _self = this, unique = MiscUtils.unique();
  
  table = document.createElement('table');
  table.style.width = '500px';
  table.style.height = '24px';
  table.cellPadding = 0;
  table.cellSpacing = 0;
  this._container.appendChild(table);
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.height = '24px';
  td.style.textAlign = 'center';
  td.style.verticalAlign = 'middle';
  td.appendChild(document.createTextNode('METHOD'));
  
  tr = table.insertRow(-1);
  td = tr.insertCell(-1);
  td.style.width = '500px';
  td.align = 'center';
  
  var contentMiddle = document.createElement('table');
  contentMiddle.style.backgroundColor = '#ebebe3';
  contentMiddle.style.padding = '10px 0';
  contentMiddle.style.borderRight = 'solid 1px #ccc';
  contentMiddle.style.borderBottom = 'solid 1px #ccc';
  contentMiddle.style.width = '500px';
  contentMiddle.cellPadding = 0;
  contentMiddle.cellSpacing = 0;
  td.appendChild(contentMiddle);
  
  var ctr = contentMiddle.insertRow(-1);
  ctd = ctr.insertCell(-1);
  var itable = document.createElement('table');
  itable.style.width = '500px';
  itable.cellPadding = 0;
  itable.cellSpacing = 0;
  ctd.appendChild(itable);
  
  itr = itable.insertRow(-1);
  itd = itr.insertCell(-1);
  itd.style.width = '80px';
  itd.style.height = '40px';
  itd.style.textAlign = 'left';
  radio = DOMUtils.createInput(unique + '_method', unique + '_hardcopy_radio', 'radio', null, null);
  itd.appendChild(radio);
  itd.appendChild(document.createTextNode('Hardcopy'));
  
  itd = itr.insertCell(-1);
  itd.style.width = '80px';
  itd.style.height = '40px';
  itd.style.textAlign = 'left';
  radio = DOMUtils.createInput(unique + '_method', unique + '_email_radio', 'radio', null, null);
  itd.appendChild(radio);
  itd.appendChild(document.createTextNode('Email'));
  
  itd = itr.insertCell(-1);
  itd.style.width = '80px';
  itd.style.height = '40px';
  itd.style.textAlign = 'left';
  radio = DOMUtils.createInput(unique + '_method', unique + '_other_radio', 'radio', null, null);
  itd.appendChild(radio);
  itd.appendChild(document.createTextNode('Other'));
  
  itd = itr.insertCell(-1);
  itd.style.width = '260px';
  itd.style.height = '40px';
  itd.style.textAlign = 'left';
  text = DOMUtils.createInput(null, unique + '_text_text', 'text', null, null);
  text.style.width = '90%';
  itd.appendChild(text);
  
  gui = GuiDialogMethod.instance(unique);
  new HandleDialogMethod(gui, this._item, this._options);
};